package com.ophelisis.persistence.dao.impl;

import java.sql.SQLException;
import java.util.List;
import java.util.Map;

import org.springframework.dao.DataAccessException;
import org.springframework.stereotype.Repository;

import com.ophelisis.ibatis.handler.handler_board_intro;
import com.ophelisis.persistence.dao.BoardIntroDAO;
import com.ophelisis.persistence.domain.BoardIntroVO;

/**
 * <pre>
 * Class : com.ophelisis.persistence.dao.impl.BoardIntroDAOImpl / BoardIntroDAOImpl.java
 * 	Define Class Object : 
 * <br>
 * </pre>
 * @author hwanLee / apexcns,Inc.
 * @version 1.0
 * @see javadoc
 * @since 2013. 07. 29.
 */
@Repository
public class BoardIntroDAOImpl implements BoardIntroDAO {
	@Override
	public List<BoardIntroVO> getBoardIntroList() throws DataAccessException, SQLException, Exception {
		try {
			return handler_board_intro.getBoardIntroList();
		} catch (SQLException e) {
			e.printStackTrace();
			return null;
		}
	}

	@Override
	public List<BoardIntroVO> getBoardIntroList(Map<String, Object> params) throws DataAccessException, SQLException, Exception {
		try {
			return handler_board_intro.getBoardIntroList(params);
		} catch (SQLException e) {
			e.printStackTrace();
			return null;
		}
	}

	@Override
	public Integer getBoardIntroListCnt() throws DataAccessException, SQLException, Exception {
		try {
			return handler_board_intro.getBoardIntroListCnt();
		} catch (SQLException e) {
			e.printStackTrace();
			return 0;
		}
	}

	@Override
	public Integer getBoardIntroListCnt(Map<String, Object> params) throws DataAccessException, SQLException, Exception {
		try {
			return handler_board_intro.getBoardIntroListCnt(params);
		} catch (SQLException e) {
			e.printStackTrace();
			return 0;
		}
	}
	
	@Override
	public List<BoardIntroVO> getBoardIntroDetail(Map<String, Object> params) throws DataAccessException, SQLException, Exception {
		try {
			return handler_board_intro.getBoardIntroDetail(params);
		} catch (SQLException e) {
			e.printStackTrace();
			return null;
		}
	}

	@Override
	public Integer setBoardIntroDelete(Map<String, Object> params) throws DataAccessException, SQLException, Exception {
		try {
			return handler_board_intro.setBoardIntroDelete(params);
		} catch (SQLException e) {
			e.printStackTrace();
			return 0;
		}
	}

	@Override
	public Integer setBoardIntroDeleteFinal(Map<String, Object> params) throws DataAccessException, SQLException, Exception {
		try {
			return handler_board_intro.setBoardIntroDeleteFinal(params);
		} catch (SQLException e) {
			e.printStackTrace();
			return 0;
		}
	}

	@Override
	public Integer setBoardIntroModify(BoardIntroVO paramVO) throws DataAccessException, SQLException, Exception {
		try {
			return handler_board_intro.setBoardIntroModify(paramVO);
		} catch (SQLException e) {
			e.printStackTrace();
			return 0;
		}
	}

	@Override
	public Integer setBoardIntroAdd(BoardIntroVO paramVO) throws DataAccessException, SQLException, Exception {
		try {
			return handler_board_intro.setBoardIntroAdd(paramVO);
		} catch (SQLException e) {
			e.printStackTrace();
			return 0;
		}
	}
}
